<template>
	<view>
		<ss-select-city :hotCitys="hotCitys" v-model="locationValue" :locationValue="locationValue" @on-select="selectValue"  />
	</view>
</template>

<script>
	import ssSelectCity from '../../components/ss-select-city/ss-select-city.vue'
	export default {
		components:{ssSelectCity},
		data() {
			return {
				hotCitys:['杭州','天津','重庆'],
				locationValue: '正在定位...',
			}
		},
		methods: {
			selectValue(city) {
			    // console.log(city)
			    this.locationValue = city
				
				uni.setStorage({
					key:'locationCity',
					data: city
				}),
				// uni.switchTab({
				// 	url:'/pages/consult/consult',
				// })
				
				uni.navigateBack({
					delta:1
				})
			},
		}
	}
</script>

<style>

</style>
